<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>统计</title>

		<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
		
		
		<style>
		*{
		padding:0px;
		margin:0px;}
		

		
		#fff a{
		width:50px;
		height:30px;
		line-height:30px;
		float:left;
		text-decoration:none;
		color:#fff;
			display:block;
			margin:10px;
			padding:5px 20px;
			border:none;;
			text-align:center;
			background:#789
		}
		</style>

	</head>
	<body>
<script src="__PUBLIC__/js/highcharts.js"></script>
<script src="__PUBLIC__/js/modules/exporting.js"></script>

<div id="fff">


<a href="http://wx.tingzan88.com/Admin/Index/tongji_p">一周</a>
<a href="http://wx.tingzan88.com/Admin/Index/tongji_p/day/1">一月</a>
<a href="http://wx.tingzan88.com/Admin/Index/tongji_p/day/2">一年</a>
</div>

<form id ="xxxx" name="form" action="http://wx.tingzan88.com/Admin/Index/tongji_u" method="get">
<input type="date" name="date" style="margin-top:20px;margin-left:50px;" value="{$dangqiansj}">
</form>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

	</body>
</html>
		<script type="text/javascript">
$(function () {


$("#fff a").click(function(){
	$("#xxxx").attr('action',$(this).attr('href'));
	$("#xxxx").submit();
	return false;
});

    $('#container').highcharts({
        chart: {
            type: 'line'
        },
        title: {
            text: '成功支付交易统计'
        },
        
        xAxis: {
            categories: [{$data0}]
        },
        yAxis: {
            title: {
                text: '交易统计/ (单)'
            }
        },
        plotOptions: {
            line: {
                dataLabels: {
                    enabled: true
                },
                enableMouseTracking: false
            }
        },
        series: [{
            name: '交易量',
            data: [{$data}]
        }]
    });
	
});
		</script>